import datetime


class Utils:

  now = datetime.date

  # 装饰器
  @classmethod
  def current_date_time(cls):
    '''
    获取当前的日期和时间
    :return:
    '''
    return cls.now

  @classmethod
  def current_date(cls):
    return cls.now.strftime("%Y-%M-%D")

  @classmethod
  def current_time(cls):
    return cls.now.strftime("%H-%M-%S")


print(Utils.current_date_time())
print(Utils.current_date())
print(Utils.current_time())
